package bookExercise;

public class A7StaticMethodDemo {
    public static int add(int a ,int b){
        return a+b;
    }

    public static void main(String[] args) {
        A7StaticMethodInterface obj = A7StaticMethodDemo::add;//引用静态方法
        int method = obj.method(20, 15);
        System.out.println(method);
    }
}
